/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group2assignone.ucm.manager;

import group2assignone.dao.MyDAO;
import group2assignone.model.Airport;
import group2assignone.ucm.UCController;
import group2assignone.ucm.UCStartup;
import group2assignone.view.manager.EditAirportView;
import group2assignone.view.manager.ManagerView;
import java.util.ArrayList;

/**
 *
 * @author Natalie
 */
public class UCManagerUIEditAirport implements UCController
{

    ArrayList<Airport> airportList = new ArrayList<Airport>();

    public void run()
    {
        ManagerView mv = ManagerView.getInstance();
        mv.setVisible(false);

        MyDAO coms = UCStartup.getInstance().getDAO();
        airportList = coms.sQLGetAirports();

        EditAirportView view = new EditAirportView(airportList);

        view.go();
    }

}
